:root {
    --primary: #5e72e4;
    --secondary: #8392ab;
    --success: #2dce89;
    --info: #11cdef;
    --warning: #fb6340;
    --danger: #f5365c;
    --light: #adb5bd;
    --dark: #344767;
    --sidebg: #344767;
    --sidetxt: #ffffff;
    --bodybg: #f8f9fe;
}

body {
    background-color: var(--bodybg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    background-color: var(--sidebg);
    color: var(--sidetxt);
    height: 100vh;
    position: fixed;
    width: 16.66%;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    padding: 20px 0;
    flex-grow: 1;
}

.nav-item {
    padding: 12px 20px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--info);
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 主内容区样式 */
.main-content {
    margin-left: 16.66%;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

.header-bar {
    background-color: white;
    padding: 15px 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eee;
}

.header-bar h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark);
}

.header-bar h1 i {
    color: var(--primary);
    margin-right: 10px;
}

.content-section {
    padding: 25px;
}

.card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark);
}

.card-header h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.card-body {
    padding: 25px;
}

/* 表单样式调整 */
.form-label {
    font-weight: 500;
    color: var(--dark);
}

.form-control, .form-select {
    border-radius: 7px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(94, 114, 228, 0.25);
    padding: 10px 20px;
    border-radius: 7px;
}

.btn-primary:hover {
    background-color: #4a5ad0;
    border-color: #4a5ad0;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    box-shadow: 0 4px 6px rgba(45, 206, 137, 0.25);
    padding: 7px 15px;
    border-radius: 7px;
}

.btn-success:hover {
    background-color: #26b677;
    border-color: #26b677;
}

/* 测试用例结果展示样式 */
.test-case-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.test-case-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.test-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.test-case-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    flex-grow: 1;
}

.test-case-id {
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(94, 114, 228, 0.1);
    padding: 3px 10px;
    border-radius: 30px;
    margin-right: 10px;
}

.priority-high {
    color: var(--danger);
    background-color: rgba(245, 54, 92, 0.1);
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.priority-medium {
    color: var(--warning);
    background-color: rgba(251, 99, 64, 0.1);
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.priority-low {
    color: var(--success);
    background-color: rgba(45, 206, 137, 0.1);
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

.test-case-content {
    margin-top: 15px;
}

.test-case-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.test-case-steps {
    list-style-position: inside;
    padding-left: 0;
}

.test-case-steps li {
    margin-bottom: 5px;
    padding: 5px 0;
}

.test-case-expected {
    padding: 10px;
    background-color: rgba(17, 205, 239, 0.05);
    border-radius: 5px;
    margin-top: 10px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    text-align: center;
}

/* 表格视图样式 */
.table {
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary);
    color: white;
}

.table thead th {
    border: none;
    padding: 12px 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(94, 114, 228, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-badge {
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.table-id {
    font-weight: 600;
    color: var(--primary);
}

.btn-view-details {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.btn-group button.active {
    background-color: var(--primary);
    color: white;
}

.test-case-modal .modal-header {
    border-bottom: 2px solid var(--primary);
}

.test-case-modal .modal-title {
    font-weight: 600;
    color: var(--dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-links {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
    }
    
    .nav-item {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 8px 15px;
        text-align: center;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--info);
    }
    
    .nav-item i {
        margin-right: 0;
        display: block;
        margin-bottom: 5px;
    }
    
    .footer {
        display: none;
    }
} 